package net.xdclass.xdvideo.exception;

/**
 * @program: xdvideo
 * @description: 自定义异常
 * @author: rZ
 * @create: 2019-11-06 10:18
 **/
public class XdException extends RuntimeException {

    //状态码
    private Integer code;
    //异常消息
    private String msg;

    public XdException() {
        super();
    }

    public XdException(Integer code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
